﻿using App_Clinique.ClassLibrary.Entities;
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Globalization;
using System.Linq;
using System.Text;
using System.Threading;
using System.Threading.Tasks;
using System.Windows.Forms;

namespace App_Clinique
{
    public partial class DetailsActualiteForm : Form
    {
        public Actualite ActualiteDB { get; set; }

        public DetailsActualiteForm()
        {
            InitializeComponent();
        }

        private void DetailsActualiteForm_Load(object sender, EventArgs e)
        {
            Thread.CurrentThread.CurrentCulture = CultureInfo.CreateSpecificCulture("fr-FR");

            this.TitreLabel.Text = ActualiteDB.Titre;
            if (ActualiteDB.DateActualite.HasValue)
            {
                this.DateLabel.Text = ((DateTime)ActualiteDB.DateActualite).ToString("F");
            }
            this.TexteLabel.Text = ActualiteDB.Texte;
        }
    }
}
